
package com.work.reports;

import com.work.i18n.Messages;

public enum ReportType {
	TAKEN_OVERTIME("overtimeToTakeReport")
	{
		@Override
		public String getTitle()
		{
			return Messages.get(getName());
		}
	},
	TOTAL_WORKED_OVERTIME("totalWorkedOvertime")
	{
		@Override
		public String getTitle()
		{
			return Messages.get(getName());
		}
	},
	TAKEN_LEAVE("takenLeaveReport")
	{
		@Override
		public String getTitle()
		{
			return Messages.get(getName());
		}
	};

	private String name;

	private ReportType(String name) {
		this.name = name;
	}

	public String getName()
	{
		return name;
	}

	public abstract String getTitle();
}
